window.onload = function() {
    function abc() {
        alert(1)
    }
    var img = document.createElement('img')
    img.src = './up.gif'
    img.style.cssText = "width: 73px;height: 100px;position: absolute;right: 30px;top: 20%;cursor: pointer;"
    document.body.appendChild(img)
    // img.onclick = function() {
        frame = document.createElement('iframe')
        // frame.src = 'example2.html'
        frame.src = 'http://localhost:3000/#/turntable'
        frame.id = 'iframe1'
        frame.scrolling = 'no'
        frame.frameBorder = '0'
        frame.width = '500px'
        frame.height = '500px'
        document.body.appendChild(frame)
    // }
    window.addEventListener("message", function(e) {
        var data = e.data
        if (data.type == 1) {
            $('#box').append(data.html)
        }
    });
}
